#ifndef CWORKERTECH_H
#define CWORKERTECH_H

#include "ctech.h"

#include <QString>
#include <QtCore/QHash>

class CTech;

class CWorkerTech
{
public:
    QString workerNum;//工号
    QHash<QString /*工序代码*/, CTech *> TechByCode;//按工序代码，这个工人所拥有的技能集
    QHash<QString /*做工类型*/, CTech *> TechByType;//按做工类型，这个工人所拥有的技能集
    bool removeByCode(QString vCode);
    bool removeByType(QString vType);
    bool setByCode(QString vCode,float vRate,float * avgRate = nullptr);
    bool setByType(QString vType,float vRate, float * avgRate = nullptr);
    float getByCode(QString vCode);//没有找到返回0
    float getByType(QString vType);//没有找到返回0
    CWorkerTech();
};


#endif // CWORKERTECH_H
